All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.util.QTPointer
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.util.QTPointerRef
|
+----quicktime.util.QTPointer
- public class QTPointer
- extends QTPointerRef
- implements QuickTimeLib, Cloneable
The QTPointer class implements a pointer that can be used in calls to QuickTime.
-
QTPointer(byte[])
- Construct a pointer from input data.
-
QTPointer(int, boolean)
- Allocate a pointer for general use.
-
QTPointer(QTHandleRef, int, int)
- This constructor is used to create a QTPointer object from a Handle.
-
QTPointer(QTPointerRef, QTPointerRef)
- Construct a pointer from the concatenation of the two supplied pointers.
-
clone()
- Returns a copy of this object
-
concatenate(QTPointerRef)
- Concatenates the supplied pointer to this pointer.
-
fromEncodedImage(EncodedImage)
- Returns EncodedImage data as a QTPointer.
-
fromSCData(SoundComponentData)
- The buffer that contains the sound data.
-
setSize(int)
- This method will resize the memory that a pointer points to.
QTPointer
public QTPointer(int size,
boolean clear) throws QTException
- Allocate a pointer for general use.
- Parameters:
- size - the size of the pointer to create.
- clear - clear the pointer upon creation.
QTPointer
public QTPointer(byte byteArray[]) throws QTException
- Construct a pointer from input data.
- Parameters:
- byteArray - the input data.
QTPointer
public QTPointer(QTHandleRef hdl,
int offset,
int size) throws QTException
- This constructor is used to create a QTPointer object from a Handle.
The contents of the handle will be copied into the pointer. This will copy
size bytes from the handle + offset. It will bounds check the size to be not
greater than the size of the handle.
- Parameters:
- hdl - the handle to copy.
- offset - you can specify an offset within the handle from which to copy the data
- size - the amount of bytes to copy
QTPointer
public QTPointer(QTPointerRef firstPtr,
QTPointerRef secondPtr) throws QTException
- Construct a pointer from the concatenation of the two supplied pointers.
The First pointer will appear first in the concatentated result.
- Parameters:
- firstPtr - the first Pointer
- secondPtr - the second Pointer
fromSCData
public static QTPointer fromSCData(SoundComponentData scd)
- The buffer that contains the sound data.
- Returns:
- the QTPointer buffer
- See Also:
- getBuffer
fromEncodedImage
public static QTPointer fromEncodedImage(EncodedImage image) throws QTException
- Returns EncodedImage data as a QTPointer. This will copy the data if the source
is an int or byte encoded image, but will return the same object if it is a RawEncodedImage.
- Parameters:
- image - the encoded image data
- Returns:
- the encoded image data as a Pointer
clone
public Object clone()
- Returns a copy of this object
- Overrides:
- clone in class Object
setSize
public void setSize(int newSize) throws UtilException
- This method will resize the memory that a pointer points to.
This operation can fail if memory cannot increase its size
QuickTime::SetPtrSize
- Parameters:
- newSize - the new size
concatenate
public void concatenate(QTPointerRef ptr) throws UtilException
- Concatenates the supplied pointer to this pointer. This operation will fail
if unable to resize the pointer.
All Packages Class Hierarchy This Package Previous Next Index